<?php

namespace App\Service\Message\v1_3_4;

use App\Model\Setting\SettingAutoMsg;
use App\Model\UserProfile;
use App\Service\BaseService;

/**
 * 打招呼消息列表
 */
class GreetWordsService extends BaseService
{
    public function handle()
    {
        $userId = $this->getUserId();
        $profile = UserProfile::getProfile($userId);
        $ret = [
            //系统列表
            'list' => SettingAutoMsg::getList(SettingAutoMsg::TYPE_SYS, $profile->gender),
        ];
        return $ret;
    }
}
